package cn.kinggm520.service.impl;

import cn.kinggm520.domain.Seller;
import cn.kinggm520.mapper.SellerMapper;
import cn.kinggm520.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 作者: kinggm Email:731586355@qq.com
 * 时间:  2020-05-22 11:58
 */
@Service
@Transactional
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerMapper sellerMapper;


    @Override
    public void addSeller(Seller seller) {
        sellerMapper.addSeller(seller);
    }

    @Override
    public Seller findById(int id) {
        return sellerMapper.findById(id);
    }

}
